home *** CD-ROM | disk | FTP | other *** search
/ Kellogg's Amérique / Kellogg's Amérique / amazonie_en_danger.swf / scripts / fl / events / ScrollEvent.as < prev   
Text File  |  2020-08-04  |  1KB  |  51 lines

  1. package fl.events
  2. {
  3.    import flash.events.Event;
  4.    
  5.    public class ScrollEvent extends Event
  6.    {
  7.       
  8.       public static const SCROLL:String = "scroll";
  9.        
  10.       
  11.       private var _position:Number;
  12.       
  13.       private var _direction:String;
  14.       
  15.       private var _delta:Number;
  16.       
  17.       public function ScrollEvent(param1:String, param2:Number, param3:Number)
  18.       {
  19.          super(ScrollEvent.SCROLL,false,false);
  20.          _direction = param1;
  21.          _delta = param2;
  22.          _position = param3;
  23.       }
  24.       
  25.       override public function clone() : Event
  26.       {
  27.          return new ScrollEvent(_direction,_delta,_position);
  28.       }
  29.       
  30.       public function get position() : Number
  31.       {
  32.          return _position;
  33.       }
  34.       
  35.       override public function toString() : String
  36.       {
  37.          return formatToString("ScrollEvent","type","bubbles","cancelable","direction","delta","position");
  38.       }
  39.       
  40.       public function get delta() : Number
  41.       {
  42.          return _delta;
  43.       }
  44.       
  45.       public function get direction() : String
  46.       {
  47.          return _direction;
  48.       }
  49.    }
  50. }
  51.